package org.elsfs.cloud.module.ai.api.entity;

import cn.idev.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.elsfs.cloud.common.annotations.Dict;
import org.elsfs.cloud.common.annotations.Spell;
import org.elsfs.cloud.common.core.entity.BaseSpellEntity;

/**
 * AI知识库
 *
 * @author zeng
 * @version V1.0.0-M2
 * @since 2025-06-20
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description = "AIRag知识库")
@Data
@ColumnWidth(20)
@TableName("ai_knowledge")
public class AiKnowledge extends BaseSpellEntity {
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String knowledgeId;

    /**
     * 知识库名称
     */
    @Schema(description = "知识库名称")
    @Spell
    private String name;

    /**
     * 向量模型id
     */
    @Schema(description = "向量模型id")
    private String modelId;

    /**
     * 描述
     */
    @Schema(description = "描述")
    private String description;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private String status;

    @TableField(exist = false)
    private String modelName;

}
